Track geocache placer ID on read from GPX/PQs.
authorrobertl <robertl>
Fri, 1 Jun 2007 21:22:34 +0000 (21:22 +0000)
committerrobertl <robertl>
Fri, 1 Jun 2007 21:22:34 +0000 (21:22 +0000)
defs.h
gpx.c

diff --git a/defs.h b/defs.h
index 7c19a356d5e98151b6bf7c4105f1c8edc0057bb1..62840196fe5008d0a41411213da859a84507ffb1 100644 (file)
--- a/defs.h
+++ b/defs.h
@@ -218,6 +218,7 @@ typedef struct {
        time_t exported;
        time_t last_found;
        char *placer; /* Placer name */
+       int placer_id; /* Placer id */
        char *hint; /* all these UTF8, XML entities removed, May be not HTML. */
        utf_string desc_short;
        utf_string desc_long; 
diff --git a/gpx.c b/gpx.c
index 70070d163a8fddbcff8278ef41e6798a7bfbfdd3..7d307daac8d887b1a2c23af673ddee878f2f02c7 100644 (file)
--- a/gpx.c
+++ b/gpx.c
@@ -649,6 +649,10 @@ gpx_start(void *data, const XML_Char *xml_el, const XML_Char **xml_attr)
        case tt_cache_desc_short:
                tag_cache_desc(attr);
                break;
+       case tt_cache_placer:
+               if (0 == strcmp(attr[0], "id")) {
+                       wpt_tmp->gc_data.placer_id = atoi(attr[1]);
+               }
        default:
                break;
        }